Network access method, device, and system

ABSTRACT

Embodiments of the present invention disclose a network access method and device. The method includes: establishing a Bluetooth connection to a Bluetooth terminal; receiving, by using the Bluetooth connection, a network access request sent by the Bluetooth terminal; and if the Bluetooth terminal is an authorized device, activating a Bluetooth network sharing function automatically and forwarding the network access request to a wide area network. In the network access method and device provided in the present invention, a simple process and low time consumption are achieved for network access.

CROSS REFERENCE AND RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.15/634,353, filed on Jun. 27, 2017. The U.S. patent application Ser. No.15/634,353 is a continuation of U.S. patent application Ser. No.14/851,321, filed on Sep. 11, 2015, now U.S. Pat. No. 9,712,952. TheU.S. patent application Ser. No. 14/851,321 is a continuation ofInternational Application No. PCT/CN2014/073335, filed on Mar. 13, 2014,which claims priority to Chinese application No. 201310079398.8, filedon Mar. 13, 2013. All of the aforementioned patent applications arehereby incorporated by reference in their entireties.

TECHNICAL FIELD

Embodiments of the present invention relate to the field ofcommunications technologies, and in particular, to a network accessmethod, device, and system.

BACKGROUND

An electronic device such as a personal digital assistance (PersonalDigital Assistance, PDA) and a mobile phone can access a network, so asto implement operations such as web browsing, email sending andreceiving, and data downloading. The electronic device can access anetwork in multiple manners. For example, the mobile phone can access a3G or 4G network by using a subscriber identity module (SubscriberIdentity Module, SIM) card; and the PDA can access the Internet networkby using a Wireless Fidelity (Wireless Fidelity, Wi-Fi) hotspot.However, in an area beyond the coverage of the Wi-Fi hotspot, the PDAcannot access the network by using the Wi-Fi hotspot.

At present, some electronic devices provide a Bluetooth access point(Access Point, AP) function, that is, a Bluetooth network sharingfunction. By using the Bluetooth network sharing function, theseelectronic devices can serve as an AP to provide another electronicdevice that needs to access the network with a network connection. Basedon the foregoing Bluetooth network sharing function, in an area beyondthe coverage of a Wi-Fi hotspot, the PDA can access the network by usingthe electronic device having the Bluetooth network sharing function. Forexample, the PDA may access the network by using a mobile phone havingthe Bluetooth network sharing function, and a network access process isthat: The mobile phone establishes a Bluetooth connection to the PDA,and then a user turns on the Bluetooth network sharing function of themobile phone manually, so as to provide the PDA with a networkconnection.

However, in the foregoing method in which the PDA accesses the networkby using a mobile phone having the Bluetooth network sharing function,for each operation, the user needs to turn on the Bluetooth networksharing function (Bluetooth AP function) of the electronic devicethrough manual configuration, which is a troublesome process and leadsto an excessively long time to access a network.

SUMMARY

The present invention provides a network access method, device, andsystem, which achieves a simple operation and low time consumption for aBluetooth terminal to access a network.

A first aspect of the present application provides a network accessmethod, including:

establishing a Bluetooth connection to a Bluetooth terminal;

receiving, by using the Bluetooth connection, a network access requestsent by the Bluetooth terminal; and

if the Bluetooth terminal is an authorized device, activating aBluetooth network sharing function automatically and forwarding thenetwork access request to a wide area network.

In a first possible implementation manner of the first aspect, beforethe establishing a Bluetooth connection to a Bluetooth terminal, themethod further includes:

performing Bluetooth pairing with the Bluetooth terminal, and during aprocess of the Bluetooth pairing, receiving an authorization requestsent by the Bluetooth terminal; and

accepting the authorization request, and identifying the Bluetoothterminal as an authorized device.

In a second possible implementation manner of the first aspect, afterthe establishing a Bluetooth connection to a Bluetooth terminal andbefore the determining whether the Bluetooth terminal is an authorizeddevice, the method further includes:

prompting a user to input an authorization confirmation instruction ofthe Bluetooth terminal by using a human-computer interaction manner; and

after the authorization confirmation instruction is received,identifying the Bluetooth terminal as an authorized device.

With reference to the first aspect of the present application, the firstpossible implementation manner of the first aspect, or the secondpossible implementation manner of the first aspect, in a third possibleimplementation manner, the method further includes:

after the network access request is forwarded to the wide area network,if a new network access request is not received within a preset time,turning off the Bluetooth network sharing function.

A second aspect of the present application provides a computer storagemedium, where,

the computer storage medium stores a computer program, and when thecomputer program in the computer storage medium is read in a computer,the computer program can enable the computer to implement the stepsaccording to any possible implementation of the first aspect of presentapplication.

A third aspect of the present application provides a network accessdevice, including:

a connection module, configured to perform Bluetooth connection to aBluetooth terminal;

a receiving module, configured to receive a network access request sentby the Bluetooth terminal connected to the Bluetooth connection module;

an activating module, configured to activate a Bluetooth network sharingmodule automatically when the Bluetooth terminal is an authorizeddevice; and

the Bluetooth network sharing module, configured to forward the networkaccess request received by the receiving module to a wide area network.

In a first possible implementation manner of the third aspect, thedevice further includes a pairing module and a first authorizationmodule, where,

the pairing module is configured to perform Bluetooth pairing with theBluetooth terminal, and during a process of the Bluetooth pairing,receive an authorization request sent by the Bluetooth terminal; and

the first authorization module is configured to accept the authorizationrequest received by the pairing module and identify the Bluetoothterminal as an authorized device.

In a second possible implementation manner of the third aspect, thedevice further includes a human-computer interaction module and a secondauthorization module, where,

the human-computer interaction module is configured to prompt a user toinput an authorization confirmation instruction of the Bluetoothterminal by using a human-computer interaction manner; and

the second authorization module is configured to identify the Bluetoothterminal as an authorized device according to the authorizationconfirmation instruction received by the human-computer interactionmodule.

With reference to the third aspect of the present application, the firstpossible implementation manner of the third aspect, or the secondpossible implementation manner of the third aspect, in a third possibleimplementation manner, the device further includes:

a turn-off module, configured to: after the Bluetooth network sharingmodule forwards the network access request to the wide area network, ifa new network access request is not received within a preset time, turnoff the Bluetooth network sharing function.

A fourth aspect of the present application provides a network accessdevice, including a memory and a processor, where,

the memory is configured to store a set of program code; and

the processor is configured to call the program code stored in thememory and execute:

establishing a Bluetooth connection to a Bluetooth terminal;

receiving, by using the Bluetooth connection, a network access requestsent by the Bluetooth terminal; and

if the Bluetooth terminal is an authorized device, activating aBluetooth network sharing function automatically and forwarding thenetwork access request to a wide area network.

In a first possible implementation manner of the fourth aspect, beforethe establishing a Bluetooth connection to a Bluetooth terminal, theprocessor is further configured to execute:

performing Bluetooth pairing with the Bluetooth terminal, and during aprocess of the Bluetooth pairing, receiving an authorization requestsent by the Bluetooth terminal; and

accepting the authorization request, and identifying the Bluetoothterminal as an authorized device.

In a second possible implementation manner of the fourth aspect, afterthe establishing a Bluetooth connection to a Bluetooth terminal andbefore the determining whether the Bluetooth terminal is an authorizeddevice, the processor is further configured to execute:

prompting a user to input an authorization confirmation instruction ofthe Bluetooth terminal by using a human-computer interaction manner; and

after the authorization confirmation instruction is received,identifying the Bluetooth terminal as an authorized device.

With reference to the fourth aspect of the present application, thefirst possible implementation manner of the fourth aspect, or the secondpossible implementation manner of the fourth aspect, in a third possibleimplementation manner, the processor is further configured to execute:

after the network access request is forwarded to the wide area network,if a new network access request is not received within a preset time,turning off the Bluetooth network sharing function.

A fifth aspect of the present application provides a network accesssystem, including a Bluetooth terminal and a network access device,where,

the Bluetooth terminal is configured to: after establishing a Bluetoothconnection to the network access device, send a network access requestto the network access device; and

the network access device is configured to: when the Bluetooth terminalis an authorized device or not, activate a Bluetooth network sharingfunction automatically and forward the network access request to a widearea network.

In a first possible implementation manner of the fifth aspect, beforethe establishing a Bluetooth connection to the Bluetooth terminal, thenetwork access device is further configured to:

perform Bluetooth pairing with the Bluetooth terminal, and during aprocess of the Bluetooth pairing, receive an authorization request sentby the Bluetooth terminal; and

identify the Bluetooth terminal as an authorized device.

In a second possible implementation manner of the fifth aspect, afterthe establishing a Bluetooth connection to the Bluetooth terminal andbefore the determining whether the Bluetooth terminal is an authorizeddevice, the network access device is further configured to:

prompt a user to input an authorization confirmation instruction of theBluetooth terminal by using a human-computer interaction manner; and

after the authorization confirmation instruction is received, identifythe Bluetooth terminal as an authorized device.

With reference to the fifth aspect of the present application, the firstpossible implementation manner of the fifth aspect, or the secondpossible implementation manner of the fifth aspect, in a third possibleimplementation manner, the network access device is further configuredto:

after the network access request is forwarded to the wide area network,when a new network access request is not received within a preset time,turn off the Bluetooth network sharing function.

In the present invention, when a network access request sent by aBluetooth terminal is received, and when it is determined that theBluetooth terminal is an authorized device, a Bluetooth network sharingfunction is activated automatically and the network access request isforwarded to a wide area network, so as to enable the Bluetooth terminalto access a network. When a Bluetooth terminal that needs to access anetwork is an authorized device, a Bluetooth network sharing functioncan be activated automatically in the present invention, so as toachieve a simple operation and low time consumption for a Bluetoothterminal to access a network.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the presentinvention more clearly, the following briefly introduces theaccompanying drawings required for describing the embodiments.Apparently, the accompanying drawings in the following description showmerely some embodiments of the present invention, and a person ofordinary skill in the art may still derive other drawings from theseaccompanying drawings without creative efforts.

FIG. 1 is a flowchart of a network access method according to anembodiment of the present invention;

FIG. 2 is a flowchart of another network access method according to anembodiment of the present invention;

FIG. 3 is a flowchart of still another network access method accordingto an embodiment of the present invention;

FIG. 4 is a structural diagram of a network access device according toan embodiment of the present invention;

FIG. 5 is a structural diagram of another network access deviceaccording to an embodiment of the present invention;

FIG. 6 is a structural diagram of still another network access deviceaccording to an embodiment of the present invention;

FIG. 7 is a structural diagram of still yet another network accessdevice according to an embodiment of the present invention;

FIG. 8 is a structural diagram of a network access device according toan embodiment of the present invention; and

FIG. 9 is a structural diagram of a network access system according toan embodiment of the present invention.

DESCRIPTION OF EMBODIMENTS

The following clearly describes the technical solutions in theembodiments of the present invention with reference to the accompanyingdrawings in the embodiments of the present invention. Apparently, thedescribed embodiments are merely some but not all of the embodiments ofthe present invention. All other embodiments obtained by a person ofordinary skill in the art based on the embodiments of the presentinvention without creative efforts shall fall within the protectionscope of the present invention.

Referring to FIG. 1, FIG. 1 is a flowchart of a network access methodaccording to an embodiment of the present invention. This embodiment isexecuted by an electronic device having a Bluetooth AP function, forexample, a mobile phone. A Bluetooth terminal described in thisembodiment is an electronic device that has a Bluetooth function andneeds to access a network, for example, a PDA. As shown in FIG. 1, thenetwork access method provided in this embodiment includes:

101. Establish a Bluetooth connection to a Bluetooth terminal.

102. Receive, by using the Bluetooth connection, a network accessrequest sent by the Bluetooth terminal.

After the connection is established to the Bluetooth terminal, if theBluetooth terminal needs to access a network, the Bluetooth terminalsends the network access request, for example, a Hyper TextTransportation Protocol (Hyper Text Transportation Protocol, HTTP)request.

Optionally, in a possible implementation manner of this embodiment,before the Bluetooth connection to the Bluetooth terminal isestablished, the network access method provided in this embodiment mayfurther include:

performing Bluetooth pairing with the Bluetooth terminal, and during aprocess of the Bluetooth pairing, receiving an authorization requestsent by the Bluetooth terminal; and

accepting the authorization request, and identifying the Bluetoothterminal as an authorized device.

For security reasons, Bluetooth pairing needs to be performed beforecommunication is performed between two Bluetooth devices, and then datacan be exchanged. Pairing (also referred to as binding sometimes) refersto a process in which two Bluetooth devices exchange protection keyswith each other. After pairing succeeds, all information sent betweenthe Bluetooth devices by using the Bluetooth connection is encrypted andcan only reach a Bluetooth device that is permitted by the pairing toreceive the information. Once pairing between the Bluetooth devicessucceeds, the connection can be established.

By using signaling in a process of the Bluetooth pairing, the entityexecuting this embodiment can receive the authorization request. Theauthorization request may be a protocol agreed upon between the entityexecuting this embodiment and the Bluetooth terminal. After receivingthe protocol, the entity executing this embodiment accepts theauthorization request and identifies the Bluetooth terminal as anauthorized device automatically.

Optionally, in another possible implementation manner of thisembodiment, after the entity executing this embodiment establishes theBluetooth connection to the Bluetooth terminal and before the entityexecuting this embodiment determines whether the Bluetooth terminal isan authorized device, the network access method provided in thisembodiment may further include:

prompting a user to input an authorization confirmation instruction ofthe Bluetooth terminal by using a human-computer interaction manner; and

after the authorization confirmation instruction is received,identifying the Bluetooth terminal as an authorized device.

The entity executing this embodiment stores an authorization record.When an authorized Bluetooth terminal initiates a network request again,the entity executing this embodiment can directly search theauthorization record to find whether the Bluetooth terminal thatinitiates the network request currently is an authorized device.

103. If the Bluetooth terminal is an authorized device, activate aBluetooth network sharing function automatically and forward the networkaccess request to a wide area network.

The entity executing this embodiment determines whether the Bluetoothterminal that initiates the network access request currently is anauthorized device. If the Bluetooth terminal is an authorized device,the entity executing this embodiment activates the Bluetooth networksharing function automatically. Optionally, a method for determiningwhether the Bluetooth device that initiates the network access requestis an authorized device may be: searching an authorization record tofind whether authorization for the Bluetooth device is included, whereif the authorization for the Bluetooth device is included, the Bluetoothdevice is an authorized device.

The entity executing this embodiment can provide the Bluetooth terminalwith a network access service by means of an access control list (AccessControl List, ACL) of Bluetooth. When the Bluetooth terminal is anauthorized device, the entity executing this embodiment activates theBluetooth network sharing function automatically and forwards thenetwork access request to a corresponding server in the wide areanetwork by means of the ACL, so as to obtain requested content.

Optionally, in order to prevent the Bluetooth network sharing functionfrom being activated in a case in which the Bluetooth network sharingfunction is not required, which leads to a waste of power and resources,and also in order to further improve user experience, in thisembodiment, after the network access request is received and the networkaccess request is forwarded to the wide area network, if a new networkaccess request is not received within a preset time, the Bluetoothnetwork sharing function is turned off. The preset time herein may beset to a proper time value according to a specific application, which isnot limited herein.

This embodiment further protects a computer storage medium. The computerstorage medium stores a computer program, and when the computer programin the computer storage medium is read in a computer, the computerprogram can enable the computer to implement the foregoing steps in thisembodiment.

In this embodiment, when a network access request sent by a Bluetoothterminal is received, and when it is determined that the Bluetoothterminal is an authorized device, a Bluetooth network sharing functionis activated automatically and the network access request is forwardedto a wide area network, so as to enable the Bluetooth terminal to accessa network. When a Bluetooth terminal that needs to access a network isan authorized device, a Bluetooth network sharing function can beactivated automatically in the present invention, so as to achieve asimple operation and low time consumption for a Bluetooth terminal toaccess a network.

Referring to FIG. 2, FIG. 2 is a flowchart of another network accessmethod according to an embodiment of the present invention, where aBluetooth terminal is a PDA, and an electronic device that provides thePDA with a Bluetooth network sharing function is a mobile phone having aBluetooth AP function. As shown in FIG. 2, the method in this embodimentincludes:

201. A mobile phone performs Bluetooth pairing with a PDA, and themobile phone receives an authorization request sent by the PDA.

Optionally, by using signaling in a process of the Bluetooth pairing,the PDA sends an authorization request, and the authorization requestmay be a protocol agreed upon between the mobile phone and the PDA.

202. The mobile phone accepts the authorization request and identifiesthe PDA as an authorized device.

203. The mobile phone establishes a Bluetooth connection to the PDA.

204. The mobile phone receives a network access request sent by the PDA.

The network access request may be an HTTP request.

205. When the PDA is an authorized device, the mobile phone activatesthe Bluetooth network sharing function.

206. The mobile phone provides the PDA with a network connection.

For a method for providing the PDA with a network connection by themobile phone, refer to the embodiment of FIG. 1, and details are notdescribed herein again.

207. If the mobile phone does not receive a new network request within apreset time, the mobile phone turns off the Bluetooth network sharingfunction.

After the mobile phone forwards a previous network access request to awide area network, if a new network access request is not receivedwithin a preset time, the mobile phone turns off the Bluetooth networksharing function.

In this embodiment, by using signaling in a process of Bluetoothpairing, a PDA sends an agreed-upon authorization request protocol to amobile phone, so that the mobile phone identifies the PDA as anauthorized device, and when the PDA initiates a network requestsubsequently, the mobile phone identifies the PDA automatically andturns on a Bluetooth AP function for the PDA. In this embodiment, thePDA can access a network by using Bluetooth without Wi-Fi, achieving asimple process and low time consumption for network access.

Referring to FIG. 3, FIG. 3 is a flowchart of still another networkaccess method according to an embodiment of the present invention, wherea Bluetooth terminal is a PDA, and an electronic device that providesthe PDA with a Bluetooth network sharing function is a mobile phonehaving a Bluetooth AP function. As shown in FIG. 3, the method in thisembodiment includes:

301. A mobile phone performs Bluetooth pairing with a PDA.

302. The mobile phone establishes a Bluetooth connection to the PDA.

303. The mobile phone prompts a user to input an authorizationconfirmation instruction by using a human-computer interaction manner.

The human-computer interaction manner may be: the mobile phone displays,on a screen, information that prompts the user whether to confirmauthorization for the device, and the user may confirm authorization byusing a corresponding confirmation button and may abandon authorizationby using a corresponding cancel button.

304. The mobile phone receives the authorization confirmationinstruction input by the user.

305. The mobile phone identifies the PDA as an authorized device.

When the user inputs the authorization confirmation instruction by usingthe corresponding confirmation button, the mobile phone identifies thePDA as an authorized device after receiving the confirmationinstruction.

306. The mobile phone receives a network access request sent by the PDA.

The network access request may be an HTTP request.

Step 303 to step 305 may also be executed after step 306. After themobile phone performs the Bluetooth pairing with the PDA, the mobilephone does not immediately prompt the user to input an authorizationconfirmation instruction. However, after step 306, the mobile phone istriggered to execute step 303 after receiving the network access requestsent by the PDA, and execute step 305 after receiving the authorizationconfirmation instruction input by the user.

307. When the PDA is an authorized device, the mobile phone activatesthe Bluetooth network sharing function.

308. The mobile phone provides the PDA with a network connection.

For a method for providing the PDA with a network connection by themobile phone, refer to the embodiment of FIG. 1, and details are notdescribed herein again.

309. If the mobile phone does not receive a new network request within apreset time, the mobile phone turns off the Bluetooth network sharingfunction.

After the mobile phone forwards a previous network access request to awide area network, if the mobile phone does not receive a new networkaccess request within a preset time, the mobile phone turns off theBluetooth network sharing function. For details, refer to the embodimentof FIG. 1, and details are not described herein again.

In this embodiment, authorization for a PDA by a mobile phone needs tobe confirmed by a user manually, and the user determines whether toauthorize the PDA to use a Bluetooth AP function, which can prevent acase in which any PDA can access a network by using the mobile phone ofthe user, which leads to a resource waste of the mobile phone of theuser.

Referring to FIG. 4, FIG. 4 is a structural diagram of a network accessdevice according to an embodiment of the present invention. The networkaccess device may be a mobile phone having a Bluetooth AP function, andthe like. The network access device includes:

a connection module 401, configured to perform Bluetooth connection to aBluetooth terminal;

a receiving module 402, configured to receive a network access requestsent by the Bluetooth terminal connected to the Bluetooth connectionmodule 401;

an activating module 403, configured to activate a Bluetooth networksharing module 405 automatically when the network access device is anauthorized device; and

the Bluetooth network sharing module 404 is configured to forward thenetwork access request received by the receiving module 402 to a widearea network.

Optionally, in a possible implementation manner of the network accessdevice provided in this embodiment, the network access device may alsoinclude a pairing module 405 and a first authorization module 406,where, as shown in FIG. 5:

the pairing module 405 is configured to perform Bluetooth pairing withthe Bluetooth terminal, and during a process of the Bluetooth pairing,receive an authorization request sent by the Bluetooth terminal; and

the first authorization module 406 is configured to accept theauthorization request received by the pairing module 405 and identifythe Bluetooth terminal as an authorized device.

In this implementation manner, by using signaling in a process of theBluetooth pairing, the Bluetooth terminal sends an agreed-uponauthorization request protocol to the mobile phone, so that the networkaccess device identifies the Bluetooth terminal as an authorized device,and when the Bluetooth terminal initiates a network request againsubsequently, the network access device identifies the Bluetoothterminal automatically and turns on the Bluetooth AP function for theBluetooth terminal.

Optionally, in a possible implementation manner of the network accessdevice provided in this embodiment, the network access device may alsoinclude a human-computer interaction module 407 and a secondauthorization module 408, where, as shown in FIG. 6:

the human-computer interaction module 407 is configured to prompt a userto input an authorization confirmation instruction of the Bluetoothterminal by using a human-computer interaction manner; and

the second authorization module 408 is configured to identify, accordingto the authorization confirmation instruction received by thehuman-computer interaction module 407, the Bluetooth terminal as anauthorized device; where in specific implementation, the secondauthorization module 408 may identify the Bluetooth terminalcorresponding to the authorization instruction as an authorized deviceafter the human-computer interaction module 407 receives theauthorization confirmation instruction.

In this implementation manner, authorization for the Bluetooth terminalby the network access device needs to be confirmed by the user manually,and the user determines whether to authorize the Bluetooth terminal toshare the Bluetooth network function, which can prevent a case in whichany Bluetooth terminal can access a network by using the network accessdevice, which leads to a resource waste of the network access device.

Optionally, this embodiment may further include a determining module409, as shown in FIG. 7. The determining module 409 is configured todetermine whether the Bluetooth device that initiates the network accessrequest currently is an authorized device. For a specific determiningmethod, refer to the foregoing embodiments for a specific determiningmethod, and details are not described herein again. A determining resultof the determining module 409 serves as a basis for whether to activatethe Bluetooth network sharing module 405 by the activating module 403.For details, refer to the foregoing description of the activating module403, and details are not described herein again.

After the network access device provided in this embodiment succeeds inperforming Bluetooth pairing with a Bluetooth terminal and establishes aBluetooth connection, the network access device, after receiving anetwork request sent by the Bluetooth terminal, determines whether theBluetooth terminal is an authorized device, and if the Bluetoothterminal is an authorized device, a Bluetooth network sharing functionis activated automatically, so as to enable the Bluetooth terminal toaccess a network. The network access device provided in this embodimentachieves a simple process and low time consumption for a Bluetoothterminal to access a network.

Referring to FIG. 8, FIG. 8 is a structural diagram of a network accessdevice according to an embodiment of the present invention, and thenetwork access device includes a memory 501 and a processor 502, where:

the memory 501 is configured to store a set of program code; and

the processor 502 is configured to call the program code stored in thememory 501 and execute:

establishing a Bluetooth connection to a Bluetooth terminal;

receiving, by using the Bluetooth connection, a network access requestsent by the Bluetooth terminal; and

if the Bluetooth terminal is an authorized device, activating aBluetooth network sharing function automatically and forwarding thenetwork access request to a wide area network.

Optionally, before establishing the Bluetooth connection to theBluetooth terminal, the processor 502 is further configured to execute:

performing Bluetooth pairing with the Bluetooth terminal, and during aprocess of the Bluetooth pairing, receiving an authorization requestsent by the Bluetooth terminal; and

identifying the Bluetooth terminal as an authorized device.

Optionally, after establishing the Bluetooth connection to the Bluetoothterminal and before determining whether the Bluetooth terminal is anauthorized device, the processor 502 is further configured to execute:

prompting a user to input an authorization confirmation instruction ofthe Bluetooth terminal by using a human-computer interaction manner; and

after the authorization confirmation instruction is received,identifying the Bluetooth terminal as an authorized device.

Optionally, the processor 502 is further configured to execute:

after the network access request is forwarded to the wide area network,if a new network access request is not received within a preset time,turning off the Bluetooth network sharing function.

After the network access device provided in this embodiment succeeds inperforming Bluetooth pairing with a Bluetooth terminal and establishes aBluetooth connection, the network access device, after receiving anetwork request sent by the Bluetooth terminal, determines whether theBluetooth terminal is an authorized device, and if the Bluetoothterminal is an authorized device, a Bluetooth network sharing functionis activated automatically, so that the Bluetooth terminal accesses anetwork. The network access device provided in this embodiment achievesa simple process and low time consumption for a Bluetooth terminal toaccess a network.

Referring to FIG. 9, FIG. 9 is a structural diagram of a network accesssystem according to an embodiment of the present invention, and thenetwork access system includes a Bluetooth terminal 601 and a networkaccess device 602.

The Bluetooth terminal 601 is configured to: after establishing aBluetooth connection to the network access device 602, send a networkaccess request to the network access device 602.

The network access device 602 is configured to: when the Bluetoothterminal 601 is an authorized device, activate a Bluetooth networksharing function automatically and forward the network access request toa wide area network.

Optionally, in a possible implementation manner of the network accesssystem provided in this embodiment, before establishing the Bluetoothconnection to the Bluetooth terminal 601, the network access device 602is further configured to:

perform Bluetooth pairing with the Bluetooth terminal 601, and during aprocess of the Bluetooth pairing, receive an authorization request sentby the Bluetooth terminal 601; and

accept the authorization request, and identify the Bluetooth terminal601 as an authorized device.

Optionally, in another possible implementation manner of the networkaccess system provided in this embodiment, after establishing theBluetooth connection to the Bluetooth terminal 601 and beforedetermining whether the Bluetooth terminal 601 is an authorized device,the network access device 602 is further configured to:

prompt a user to input an authorization confirmation instruction of theBluetooth terminal 601 by using a human-computer interaction manner; and

after the authorization confirmation instruction is received, identifythe Bluetooth terminal 601 as an authorized device.

Optionally, the network access device 602 is further configured to:

after the network access request is forwarded to the wide area network,if a new network access request is not received within a preset time,turn off the Bluetooth network sharing function.

In this embodiment, after the network access device succeeds inperforming Bluetooth pairing with a Bluetooth terminal and establishes aBluetooth connection, the network access device, after receiving anetwork request sent by the Bluetooth terminal, determines whether theBluetooth terminal is an authorized device, and if the Bluetoothterminal is an authorized device, a Bluetooth network sharing functionis activated automatically, so as to enable the Bluetooth terminal toaccess a network. In this embodiment, a simple process operation and lowtime consumption are achieved for a Bluetooth terminal to access anetwork.

A person of ordinary skill in the art may understand that all or some ofthe processes of the methods in the embodiments may be implemented by acomputer program instructing relevant hardware. The program may bestored in a computer readable storage medium. When the program runs, theprocesses of the methods in the embodiments are performed. The foregoingstorage medium may include: a magnetic disk, an optical disc, aread-only memory (Read-Only Memory, ROM), or a random access memory(Random Access Memory, RAM).

What is disclosed above is merely exemplary embodiments of the presentinvention, and certainly is not intended to limit the protection scopeof the present invention. Therefore, equivalent variations made inaccordance with the claims of the present invention shall fall withinthe scope of the present invention.

What is claimed is:
 1. A network access method, comprising:establishing, by a wide area network terminal, a Bluetooth connection toa Bluetooth terminal; receiving, by using the Bluetooth connection, anetwork access request sent by the Bluetooth terminal; and when theBluetooth terminal is an authorized device, automatically using aBluetooth network sharing function to forward the network access requestto a wide area network.
 2. The method according to claim 1, whereinbefore the establishing of the Bluetooth connection to the Bluetoothterminal, the method further comprises: performing Bluetooth pairingwith the Bluetooth terminal, and during a process of the Bluetoothpairing, receiving an authorization request sent by the Bluetoothterminal; and accepting the authorization request, and identifying theBluetooth terminal as the authorized device.
 3. The method according toclaim 1, wherein after the establishing of the Bluetooth connection tothe Bluetooth terminal and before the determining of whether theBluetooth terminal is the authorized device, the method furthercomprises: prompting a user to input an authorization confirmationinstruction of the Bluetooth terminal by using a user interface; andafter the authorization confirmation instruction is received,identifying the Bluetooth terminal as the authorized device.
 4. Themethod according to claim 3, further comprising: after the networkaccess request is forwarded to the wide area network, when a new networkaccess request is not received within a preset time, turning off theBluetooth network sharing function.
 5. At least one non-transitorycomputer readable medium storing computer readable instructions whichwhen executed control at least one processor to implement a networkaccess method, comprising: establishing, by a wide area networkterminal, a Bluetooth connection to a Bluetooth terminal; receiving, byusing the Bluetooth connection, a network access request sent by theBluetooth terminal; and when the Bluetooth terminal is an authorizeddevice, automatically using a Bluetooth network sharing function toforward the network access request to a wide area network.
 6. A widearea network terminal, comprising: at least one memory configured tostore computer readable instructions; and at least one hardwareprocessor configured to access the computer readable instructions storedin the at least one memory and to execute the computer readableinstructions to implement: establishing a Bluetooth connection to aBluetooth terminal; receiving, by using the Bluetooth connection, anetwork access request sent by the Bluetooth terminal; and when theBluetooth terminal is an authorized device, automatically using aBluetooth network sharing function to forward the network access requestto a wide area network.
 7. The terminal according to claim 6, whereinbefore the establishing of the Bluetooth connection to the Bluetoothterminal, the at least one processor is further configured to executecomputer readable instructions to implement: performing Bluetoothpairing with the Bluetooth terminal, and during a process of theBluetooth pairing, receiving an authorization request sent by theBluetooth terminal; and accepting the authorization request, andidentifying the Bluetooth terminal as the authorized device.
 8. Theterminal according to claim 7, wherein after the establishing of theBluetooth connection to the Bluetooth terminal and before thedetermining of whether the Bluetooth terminal is the authorized device,the at least one processor is further configured to execute computerreadable instructions to implement: prompting a user to input anauthorization confirmation instruction of the Bluetooth terminal byusing a user interface; and after the authorization confirmationinstruction is received, identifying the Bluetooth terminal as theauthorized device.
 9. The terminal according to claim 8, wherein, the atleast one processor is further configured to execute the computerreadable instructions to implement: after the network access request isforwarded to the wide area network, when a new network access request isnot received within a preset time, turning off the Bluetooth networksharing function.